<!doctype html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>傲小兮</title>
	<link rel="stylesheet" href="../Public/bs/css/bootstrap.min.css">
	<link rel="stylesheet" href="../Public/css/Usercenter_upload.css">
	<!-- <link href="../Public/jcrop/css/main.css" rel="stylesheet" > -->
	<link href="../Public/jcrop/css/jquery.Jcrop.min.css" rel="stylesheet" >
	<link href="__PUBLIC__/favicon.ico" rel="shortcut icon">
	<!-- add scripts -->
	<script src="../Public/jcrop/js/jquery.min.js"></script>
	<script src="../Public/jcrop/js/jquery.Jcrop.min.js"></script>
	<script src="../Public/jcrop/js/script.js"></script>
</head>
<body>
	<div class="navimg">
		<img src="../Public/images/logo.jpg" alt="">
	</div>
	<div class="content">
		<h1 class="page-header">亲,欢迎上传头像</h1>
		<form id="upload_form" enctype="multipart/form-data" method="post" action="__URL__/dealUpload" onSubmit="return checkForm()">
		    <!-- hidden crop params -->
		    <input type="hidden" id="x1" name="x1" />
		    <input type="hidden" id="y1" name="y1" />
		    <input type="hidden" id="x2" name="x2" />
		    <input type="hidden" id="y2" name="y2" />

		    <h5>1.请选择图像文件</h5>
		    <div><input type="file" name="image_file"  id="image_file" onChange="fileSelectHandler()" /></div>
		    <button class="error  btn btn-danger "></button>

		    <div class="step2">
		        <h5>2.请选择需要截图的部位,然后按上传</h5>
		        <img id="preview" />

		        <div class="info">
			           <input type="hidden"  class="form-control " id="filesize" name="filesize" />
			         <input type="hidden"  class="form-control " id="filetype" name="filetype" />
			           <input type="hidden" id="filedim" name="filedim" />
			         <input type="hidden" id="w" name="w" />
			         <input type="hidden" id="h" name="h" />
		        </div> 
		    </div>
		      <input type="submit" value="上传" class="btn btn-info btn-lg ">
		      <a href="__APP__/AfterLogin/index" class="btn btn-info btn-lg" target="_self">返回</a>
		</form>
	</div>
</body>
</html>